package com.xjy.service;

import com.xjy.pojo.Cart;
import com.xjy.pojo.Path;

import java.util.List;
import java.util.Map;

public interface pathService {
    List<Path> getPaths();

    int addPath(Path path);

    int updatePath(Path path);

    List<Path> findAllPathsByPage(int page, int size);

    Path getPathById(String pid);

    List<Path> getPathsByProvince(String province);

    List<Path> getPathsByCity(String city);

    List<Path> getPathsByDaytime(int daytime);

    List<Path> getPathsByStaus(int status);

    List<Path> getRandomPath();

    Path getPathInfoById(String pid);

    int updatePathPic(Map<String, String> map);

    int addPathPic(String picid, String fileName);

    List<Path> getPathList(int page, int size);

    int deletePathPic(String picid, String oldPic);

    List<Path> getHotPaths();
}
